﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using LocationBasedClient.BusinessLogic;

namespace LocationBasedClient.Presentation
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void label1_ParentChanged(object sender, EventArgs e)
        {

        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            try
            {
                LBSServiceReference.LBSService myService = new LocationBasedClient.LBSServiceReference.LBSService();

                UserIdentification.MyUserId = myService.LoginUser(tbName.Text, tbPsw.Text);
                new MainForm().Show();
             
              
            }
            catch (Exception ex)
            {
                label1.Text = ex.Message;
                
            }

            
        }
    }
}